package pers.zb.task.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import pers.zb.common.AjaxResult;

@Controller
@RequestMapping("/task")
public class TaskController {

    @RequestMapping("task")
    @ResponseBody
    public AjaxResult<String> task() {
        AjaxResult<String> result = new AjaxResult<String>();
        result.setCode(10001);
        result.setMsg("测试");
        result.setResult("结果data");
        return result;
    }
}
